Memory-prediction framework